import java.awt.*;

class ListFonts {
    public static void main(String args[]) {
        GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
        String [] fontNames = env.getAvailableFontFamilyNames();
        System.out.println("available font : ");
        for (String name:fontNames) {
            System.out.println(name);
        }
    }
}
